package cn.tedu.medicalmanagementsystem.user.pojo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;

@Data
@ApiModel("添加评价参数")
public class ReviewAddParam {
    @ApiModelProperty(value ="用户ID",required = true)
    private Long userId;
    @ApiModelProperty(value = "预约ID", required = true)
    @NotNull(message = "预约ID不能为空")
    private Long appointmentId;

    @ApiModelProperty(value = "陪诊员ID", required = true)
    @NotNull(message = "陪诊员ID不能为空")
    private Long escortId;

    @ApiModelProperty(value = "评分(1-5)", required = true)
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    private Integer rating;

    @ApiModelProperty(value = "评价内容")
    @Size(max = 500, message = "评价内容不能超过500字")
    private String content;
}